package com.atguigu.tingshu.common.threadpool;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "app.threadpool")
public class ThreadPoolConfigProperties {
    private Integer corePoolSize = 2 * Runtime.getRuntime().availableProcessors(); // 默认核心线程数
    private Integer maxPoolSize = 2 * Runtime.getRuntime().availableProcessors() + 10; // 默认最大线程数
    private Integer keepAliveTime = 15;
    private Integer queueSize = 50;
}
